import React from "react";
import { omit } from "lodash";
import "./index.less";

interface IVTextProps {
  text?: string;
  style?: React.CSSProperties;
  [key: string]: any;
}
class VText extends React.Component<IVTextProps> {
  render() {
    const { text, style } = this.props;
    return <p {...this.props} style={omit(style, ["width", "height", "top", "left"])}>{ text || "通用标题" }</p>
  }
}
export default VText;